/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.assignment2.question2.employeesCorrection.Impl;

import za.ac.cput.assignment2.question2.employeesCorrection.EmployeesCorrection;

/**
 *
 * @author 208067396
 */
public class EmployeesCorrectionSalaryImpl implements EmployeesCorrection {
    
        private int empNumber;
        private String name;
        private String surname;
        private String jobTitle;
        private double salary;
    
    public EmployeesCorrectionSalaryImpl(int number, String nme, String surn, String job, double sal)
    {
        empNumber = number;
        name = nme;
        surname = surn;
        jobTitle = job;
        salary = sal;
        
    }

    @Override
    public double calcTax() {
        return salary * 0.10;
    }

    /**
     * @return the empNumber
     */
    public int getEmpNumber() {
        return empNumber;
    }

    /**
     * @param empNumber the empNumber to set
     */
    public void setEmpNumber(int empNumber) {
        this.empNumber = empNumber;
    }

    /**
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * @param name the name to set
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * @return the surname
     */
    public String getSurname() {
        return surname;
    }

    /**
     * @param surname the surname to set
     */
    public void setSurname(String surname) {
        this.surname = surname;
    }

    /**
     * @return the jobTitle
     */
    public String getJobTitle() {
        return jobTitle;
    }

    /**
     * @param jobTitle the jobTitle to set
     */
    public void setJobTitle(String jobTitle) {
        this.jobTitle = jobTitle;
    }
    
}
